package com.feri.api.controller;

import com.feri.api.service.intf.HomeAreaService;
import com.feri.api.vo.R;
import com.feri.common.entity.HomeArea;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * .::::.
 * .::::::::.
 * :::::::::::
 * ..:::::::::::'
 * '::::::::::::'
 * .::::::::::
 * '::::::::::::::..
 * ..::::::::::::.
 * ``::::::::::::::::
 * ::::``:::::::::'        .:::.
 * ::::'   ':::::'       .::::::::.
 * .::::'      ::::     .:::::::'::::.
 * .:::'       :::::  .:::::::::' ':::::.
 * .::'        :::::.:::::::::'      ':::::.
 * .::'         ::::::::::::::'         ``::::.
 * ...:::           ::::::::::::'              ``::.
 * ```` ':.          ':::::::::'                  ::::..
 * '.:::::'                    ':'````..
 *
 * @author wl
 * @ date 2022/10/4
 */
@RestController
@RequestMapping("/api/HomeArea/")
@Api(tags = "小区住宅信息相关接口")
public class HomeAreaController {
    @Resource
    private HomeAreaService service;
    @PostMapping("save.do")
    public R save(HomeArea homeArea){
        return service.save(homeArea);
    }
    @GetMapping("all.do")
    public R query(){
        return service.queryAll();
    }
}
